(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/index/agent-detail" ], {
    "38e5": function(t, n, i) {
        (function(o) {
            function e(e, t) {
                var n, i = Object.keys(e);
                return Object.getOwnPropertySymbols && (n = Object.getOwnPropertySymbols(e), t && (n = n.filter(function(t) {
                    return Object.getOwnPropertyDescriptor(e, t).enumerable;
                })), i.push.apply(i, n)), i;
            }
            Object.defineProperty(n, "__esModule", {
                value: !0
            });
            var t = {
                components: {},
                data: function() {
                    return {
                        user: {
                            lng: 0,
                            lat: 0
                        },
                        user_id: 0,
                        houseList: [],
                        isLoading: 1,
                        typeList: [],
                        house_type: "lethouse"
                    };
                },
                computed: function(i) {
                    for (var t = 1; t < arguments.length; t++) {
                        var o = null != arguments[t] ? arguments[t] : {};
                        t % 2 ? e(Object(o), !0).forEach(function(t) {
                            var e, n;
                            e = i, t = o[n = t], n in e ? Object.defineProperty(e, n, {
                                value: t,
                                enumerable: !0,
                                configurable: !0,
                                writable: !0
                            }) : e[n] = t;
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(o)) : e(Object(o)).forEach(function(t) {
                            Object.defineProperty(i, t, Object.getOwnPropertyDescriptor(o, t));
                        });
                    }
                    return i;
                }({}, (n.default = void 0, i("26cb").mapState)({
                    isLogin: function(t) {
                        return t.user.isLogin;
                    },
                    basicSet: function(t) {
                        return t.init.basicSet;
                    }
                })),
                onLoad: function() {
                    var t = this.$Route.query;
                    this.user_id = t.user_id, this.init();
                },
                onReady: function() {},
                methods: {
                    init: function() {
                        this.get_user(), this.get_houses();
                    },
                    get_user: function() {
                        var e = this;
                        e.$api("house.get_user", {
                            user_id: e.user_id
                        }).then(function(t) {
                            0 == t.errno ? (e.user = t.data.user, e.isLoading = 0, o.setNavigationBarTitle({
                                title: e.user.nickname
                            })) : o.navigateBack({});
                        });
                    },
                    call: function() {
                        console.info(22);
                        var t = this.user.phone;
                        o.makePhoneCall({
                            phoneNumber: t
                        });
                    },
                    navAddress: function(t) {
                        var e = this.community.lat, n = this.community.lng, i = this.community.address;
                        o.openLocation({
                            latitude: parseFloat(e),
                            longitude: parseFloat(n),
                            address: i,
                            name: i
                        });
                    },
                    chat: function() {
                        var e = this, n = this.agent.user_id;
                        0 != n && (this.isLogin ? this.$api("chat.houseChatInit", {
                            house_id: 0,
                            tid: n,
                            type: "agent"
                        }).then(function(t) {
                            0 == t.data.code ? e.$Router.push({
                                path: "/pages/chat/index",
                                query: {
                                    chat_id: t.data.chat_id,
                                    tid: n
                                }
                            }) : e.$tools.toast(t.data.msg);
                        }) : this.$store.commit("LOGIN_TIP", !0));
                    },
                    backHome: function() {
                        this.$Router.pushTab({
                            path: "/pages/index/index"
                        });
                    },
                    selcetTab: function(t) {
                        this.house_type = t, this.getHouses();
                    },
                    get_houses: function() {
                        var e = this;
                        this.$api("house.agent_house_list", {
                            user_id: e.user_id
                        }).then(function(t) {
                            e.houseList = t.data.list;
                        });
                    }
                }
            };
            n.default = t;
        }).call(this, i("543d").default);
    },
    "694b": function(t, e, n) {
        n.r(e);
        var i, o = n("edc5"), u = n("69c9");
        for (i in u) "default" !== i && function(t) {
            n.d(e, t, function() {
                return u[t];
            });
        }(i);
        n("d837");
        var r = n("f0c5"), o = Object(r.a)(u.default, o.b, o.c, !1, null, null, null, !1, o.a, void 0);
        e.default = o.exports;
    },
    "69c9": function(t, e, n) {
        n.r(e);
        var i, o = n("38e5"), u = n.n(o);
        for (i in o) "default" !== i && function(t) {
            n.d(e, t, function() {
                return o[t];
            });
        }(i);
        e.default = u.a;
    },
    7163: function(t, e, i) {
        (function(t) {
            i("767a"), n(i("66fd"));
            var e = n(i("694b"));
            function n(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = i, t(e.default);
        }).call(this, i("543d").createPage);
    },
    a687: function(t, e, n) {},
    d837: function(t, e, n) {
        var i = n("a687");
        n.n(i).a;
    },
    edc5: function(t, e, n) {
        n.d(e, "b", function() {
            return o;
        }), n.d(e, "c", function() {
            return u;
        }), n.d(e, "a", function() {
            return i;
        });
        var i = {
            wkLethouses: function() {
                return n.e("components/wk-lethouses/index").then(n.bind(null, "295a"));
            },
            wkLoginModal: function() {
                return n.e("components/wk-login-modal/index").then(n.bind(null, "978a"));
            },
            wkSkeletons: function() {
                return n.e("components/wk-skeletons/index").then(n.bind(null, "5375"));
            }
        }, o = function() {
            this.$createElement;
            this._self._c;
        }, u = [];
    }
}, [ [ "7163", "common/runtime", "common/vendor" ] ] ]);